package com.lottery.dao.pc28.lobbyDao;

import com.lottery.dto.WinningResultsDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WinningResultsDao {

	/**
	 * 根据期号查询中奖的结果
	 */
	List<WinningResultsDto> selectWinningResultsByExpect(String expect);

	/**
	 * 根据userId和expect查询
	 * 
	 * @param userId
	 * @param expect
	 * @return
	 */
	List<WinningResultsDto> selectWinningResults(@Param(value = "userId") int userId,
                                                 @Param(value = "expect") String expect, @Param(value = "startPage") int startPage,
                                                 @Param(value = "pageSize") int pageSize);

	/**
	 * 根据userId和expect查询总条数
	 * @param userId
	 * @param expect
	 * @return
	 */
	int selectWinningResultsCount(@Param(value = "userId") int userId, @Param(value = "expect") String expect);

}
